package com.daocao.common.domain.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
@TableName("ums_user_detail")
public class UmsUserDetail implements Serializable{
    @TableId
    private Long id;
    private String kanjiname;
    private String kananame;
    private String birthday;
    private Integer sex;
    private Integer married;
    private String company;
    private String address1;
    private String address2;
    private String phonenum;
    private String passcode;
    @TableField("company_address1")
    private String companyAddress1;
    @TableField("company_address2")
    private String companyAddress2;
    @TableField("company_phonenum")
    private String companyPhonenum;
    @TableField("company_passcode")
    private String companyPasscode;

    private String creator;
    private String updater;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
